package com.example.myblog.service;

import com.example.myblog.dao.UserMapper;
import com.example.myblog.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;
    public User selectByName(String userName){
        return userMapper.selectByName(userName);
    }
}
